|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| PrayerRequestSearcher.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
package org.marketchangers.prayer;
|
|
| 2 |
|
|
| 3 |
import java.io.IOException;
|
|
| 4 |
import java.util.Collection;
|
|
| 5 |
import java.util.Collections;
|
|
| 6 |
import java.util.List;
|
|
| 7 |
|
|
| 8 |
/**
|
|
| 9 |
* @author <a href="mailto:mtodd@wc-group.com">Matthew Todd</a>
|
|
| 10 |
*/
|
|
| 11 |
public interface PrayerRequestSearcher { |
|
| 12 |
public void index(PrayerRequest request); |
|
| 13 |
public void index(Collection requests); |
|
| 14 |
|
|
| 15 |
/**
|
|
| 16 |
* By this point, organizationName has been mapped to a list of users, and
|
|
| 17 |
* the whole list has been filtered to just those the intercessor has
|
|
| 18 |
* permission to view.
|
|
| 19 |
*/
|
|
| 20 |
public List search(PrayerRequestQuery query);
|
|
| 21 |
|
|
| 22 |
public void updateStatus(PrayerRequest reqeust); |
|
| 23 |
public void delete(int docId) throws IOException; |
|
| 24 |
|
|
| 25 |
// -------------------------------------------------------- The Null Object
|
|
| 26 |
public static final PrayerRequestSearcher NULL_OBJECT = |
|
| 27 |
new PrayerRequestSearcher() {
|
|
| 28 |
|
|
| 29 | 0 |
public void index(PrayerRequest request) { |
| 30 |
} |
|
| 31 |
|
|
| 32 | 0 |
public void index(Collection requests) { |
| 33 |
} |
|
| 34 |
|
|
| 35 | 0 |
public List search(PrayerRequestQuery query) {
|
| 36 | 0 |
return Collections.EMPTY_LIST;
|
| 37 |
} |
|
| 38 |
|
|
| 39 | 0 |
public void updateStatus(PrayerRequest request) { |
| 40 |
} |
|
| 41 |
|
|
| 42 | 0 |
public void delete(int docId) throws IOException { |
| 43 |
} |
|
| 44 |
}; |
|
| 45 |
} |
|
| 46 |
|
|
||||||||||